package com.triones.api.controller.api;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.R;
import com.triones.api.entity.vo.FeeThaliVO;
import com.triones.api.service.FeeThaliService;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * api - 获取相关手续费
 *
 * @Author: triones
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/api/feeThali")
public class ApiFeeThaliController extends BaseController {

    private final FeeThaliService feeThaliService;

    /**
     * 根据类型获取相关手续费
     */
    @GetMapping
    public R<FeeThaliVO> getInfoByType(String type,String subType) {
        return R.ok(feeThaliService.getInfoByType(type,subType));
    }
}
